﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;


namespace rkClient
{
    public partial class MainMenu : Form
    {
     
        enum MainMenuResult
        {
            CREATEGAME,
            JOINGAME
        };
        
		public JoinGame joinGame;
		

        public MainMenu()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Process.Start("rkServer.exe");	
        }

		private void btnJoinGame_Click(object sender, EventArgs e)
		{
			joinGame = new JoinGame();
			if(joinGame.ShowDialog () ==DialogResult.OK)
			{
				DialogResult = DialogResult.OK;
				this.Close();
			}
		}
    }
}
